package com.itheima.test6;

import jdk.swing.interop.SwingInterOpUtils;

public class Test {
    public static void main(String[] args) {
    /*    useShow(()->{
            System.out.println("使用lambda表达式");
        });
    }*/

    useShow(new Inter() {
        @Override
        public void show() {
            System.out.println("使用匿名内部类");
        }
    });
    }


    public static void useShow(Inter inter){
        inter.show();
    }
}


interface Inter{
    void show();
}
